import * as React from 'react';
import { Text, View, TextInput,StyleSheet, Image,
    TouchableOpacity,ScrollView
} from 'react-native';
export default class MiddleItem extends React.Component {
    render() {
        return (
                <View>
                    <Image source ={require('../../assets/school.jpg')} style={{width:40,height:40}} />
                    <Text style={{color:'#000'}}>{this.props.name}</Text>
                </View>
        );
    }
}
const styles = StyleSheet.create({

});
//Z自定义组件封装导出
module.exports = MiddleItem
